<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html id="htmlId">
<head>
    <title>Coverage Report :: Direction</title>
    <style type="text/css">
        @import "../../.css/coverage.css";
    </style>
</head>

<body>
<div class="header"></div>

<div class="content">
    <div class="breadCrumbs">
        [ <a href="../../index.html">all classes</a> ]
        [ <a href="../index.html">nl.tudelft.jpacman.board</a> ]
    </div>

    <h1>Coverage Summary for Class: Direction (nl.tudelft.jpacman.board)</h1>

    <table class="coverageStats">
        <tr>
            <th class="name">Class</th>
            <th class="coverageStat
">
                Class, %
            </th>
            <th class="coverageStat
">
                Method, %
            </th>
            <th class="coverageStat
">
                Line, %
            </th>
        </tr>
        <tr>
            <td class="name">Direction</td>
            <td class="coverageStat">
  <span class="percent">
    0%
  </span>
                <span class="absValue">
    (0/ 1)
  </span>
            </td>
            <td class="coverageStat">
  <span class="percent">
    0%
  </span>
                <span class="absValue">
    (0/ 5)
  </span>
            </td>
            <td class="coverageStat">
  <span class="percent">
    0%
  </span>
                <span class="absValue">
    (0/ 11)
  </span>
            </td>
        </tr>

    </table>

    <br/>
    <br/>


    <div class="sourceCode"><i>1</i>&nbsp;package nl.tudelft.jpacman.board;
        <i>2</i>&nbsp;
        <i>3</i>&nbsp;/**
        <i>4</i>&nbsp; * An enumeration of possible directions on a two-dimensional square grid.
        <i>5</i>&nbsp; *
        <i>6</i>&nbsp; * @author Jeroen Roosen
        <i>7</i>&nbsp; */
        <b class="nc"><i>8</i>&nbsp;public enum Direction {</b>
        <i>9</i>&nbsp;
        <i>10</i>&nbsp; /**
        <i>11</i>&nbsp; * North, or up.
        <i>12</i>&nbsp; */
        <b class="nc"><i>13</i>&nbsp; NORTH(0, -1),</b>
        <i>14</i>&nbsp;
        <i>15</i>&nbsp; /**
        <i>16</i>&nbsp; * South, or down.
        <i>17</i>&nbsp; */
        <b class="nc"><i>18</i>&nbsp; SOUTH(0, 1),</b>
        <i>19</i>&nbsp;
        <i>20</i>&nbsp; /**
        <i>21</i>&nbsp; * West, or left.
        <i>22</i>&nbsp; */
        <b class="nc"><i>23</i>&nbsp; WEST(-1, 0),</b>
        <i>24</i>&nbsp;
        <i>25</i>&nbsp; /**
        <i>26</i>&nbsp; * East, or right.
        <i>27</i>&nbsp; */
        <b class="nc"><i>28</i>&nbsp; EAST(1, 0);</b>
        <i>29</i>&nbsp;
        <i>30</i>&nbsp; /**
        <i>31</i>&nbsp; * The delta x (width difference) to an element in the direction in a grid
        <i>32</i>&nbsp; * with 0,0 (x,y) as its top-left element.
        <i>33</i>&nbsp; */
        <i>34</i>&nbsp; private final int deltaX;
        <i>35</i>&nbsp;
        <i>36</i>&nbsp; /**
        <i>37</i>&nbsp; * The delta y (height difference) to an element in the direction in a grid
        <i>38</i>&nbsp; * with 0,0 (x,y) as its top-left element.
        <i>39</i>&nbsp; */
        <i>40</i>&nbsp; private final int deltaY;
        <i>41</i>&nbsp;
        <i>42</i>&nbsp; /**
        <i>43</i>&nbsp; * Creates a new Direction with the given parameters.
        <i>44</i>&nbsp; *
        <i>45</i>&nbsp; * @param deltaX The delta x (width difference) to an element in the direction
        <i>46</i>&nbsp; * in a matrix with 0,0 (x,y) as its top-left element.
        <i>47</i>&nbsp; * @param deltaY The delta y (height difference) to an element in the direction
        <i>48</i>&nbsp; * in a matrix with 0,0 (x,y) as its top-left element.
        <i>49</i>&nbsp; */
        <b class="nc"><i>50</i>&nbsp; Direction(int deltaX, int deltaY) {</b>
        <b class="nc"><i>51</i>&nbsp; this.deltaX = deltaX;</b>
        <b class="nc"><i>52</i>&nbsp; this.deltaY = deltaY;</b>
        <b class="nc"><i>53</i>&nbsp; }</b>
        <i>54</i>&nbsp;
        <i>55</i>&nbsp; /**
        <i>56</i>&nbsp; * @return The delta x (width difference) for a single step in this
        <i>57</i>&nbsp; * direction, in a matrix with 0,0 (x,y) as its top-left element.
        <i>58</i>&nbsp; */
        <i>59</i>&nbsp; public int getDeltaX() {
        <b class="nc"><i>60</i>&nbsp; return deltaX;</b>
        <i>61</i>&nbsp; }
        <i>62</i>&nbsp;
        <i>63</i>&nbsp; /**
        <i>64</i>&nbsp; * @return The delta y (height difference) for a single step in this
        <i>65</i>&nbsp; * direction, in a matrix with 0,0 (x,y) as its top-left element.
        <i>66</i>&nbsp; */
        <i>67</i>&nbsp; public int getDeltaY() {
        <b class="nc"><i>68</i>&nbsp; return deltaY;</b>
        <i>69</i>&nbsp; }
        <i>70</i>&nbsp;
        <i>71</i>&nbsp;}
    </div>
</div>

<div class="footer">

    <div style="float:right;">generated on 2023-04-25 16:45</div>
</div>
</body>
</html>
